package com.wanxi.chat.message.chat;

import com.wanxi.chat.dispatcher.Message;

/**
 * 聊天发送消息结果的 Response
 */
public class ChatSendResponse implements Message {

    public static final String TYPE = "CHAT_SEND_RESPONSE";

    /**
     * 发送方id
     */
    private String toId;
    /**
     * 接收方id
     */
    private String fromId;
    /**
     * 接收方响应状态码
     */
    private String userId;
    /**
     * 接收方响应状态码
     */
    private Integer code;
    /**
     * 接收方响应提示
     */
    private String message;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getToId() {
        return toId;
    }

    public void setToId(String toId) {
        this.toId = toId;
    }

    public Integer getCode() {
        return code;
    }

    public ChatSendResponse setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ChatSendResponse setMessage(String message) {
        this.message = message;
        return this;
    }

    @Override
    public String toString() {
        return "ChatSendResponse{" +
                "toId='" + toId + '\'' +
                ", code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
